﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace Bamboo.Core
{
    public interface IUnitOfWork : IDisposable
    {
        object Add(object entity);
        void Update(object entity);
        void Remove(object entity);

        void AddOrUpdate(object entity);

        void Commit();
        void Rollback();
    }
}
